//
//  HomeView.swift
//  TanTan_Kotlin
//
//  Created by EDY on 5/26/25.
//

import SwiftUI

struct HomeView : View {
    var body: some View {
        NavigationView {
            VStack{
                NavigationLink(destination: SimpleView()){
                    Text("简单视图")
                        .padding()
                        .background(Color.blue)
                        .foregroundColor(.white)
                        .cornerRadius(10)
                }
                NavigationLink(destination: SwiftLearnView()){
                    Text("视图练习")
                        .padding()
                        .background(Color.blue)
                        .foregroundColor(.white)
                        .cornerRadius(10)
                }
                NavigationLink(destination: SimpleListView()){
                    Text("复杂视图")
                        .padding()
                        .background(Color.blue)
                        .foregroundColor(.white)
                        .cornerRadius(10)
                }
                NavigationLink(destination: SimpleTabBarView()) {
                    Text("Tab   bar")
                        .padding()
                        .background(Color.blue)
                        .foregroundColor(.white)
                        .cornerRadius(10)
                }
                NavigationLink(destination: MultiPageAppView()) {
                    Text("商品购物")
                        .padding()
                        .background(Color.blue)
                        .foregroundColor(.white)
                        .cornerRadius(10)
                }
            }
          .navigationTitle("首页")
        }
    }
}
